<?php
/**
 * Created by JiangJiaCai.
 * User: LongBob
 * Date: 17-9-24
 * Time: 下午7:33
 */

namespace ext\dao;


use App\Models\QdcsProject;
use ext\lib\BaseDaoImpl;

class ProjectDaoImpl extends BaseDaoImpl
{
    /**
     * 获取指定classId记录数
     * @param int $classId
     * @return int
     */
    public function getClassIdCount(int $classId): int{
        return QdcsProject::where(['ptype_id' => $classId])->count();
    }
}